﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SecondApi.Controllers
{
    public class SecondController : ApiController
    {
        /// <summary>
        /// 用于测试ocelot网关统一访问
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public string getmessage()
        {
            return @"我是下游 api--second api";
        }
        //ocelot网关官网：https://ocelot.readthedocs.io/
        //通过网关测试访问地址：http://localhost:5000/second/Second/getmessage
    }
}
